import request from "@/utils/request";
//综合榜数据
export const reqIntegratedInfo = (pageSize: number, pageNum: number) => {
  return request.get<any, any>(
    `/apis/moment/moments/collect/original/integrated`,
    {
      params: {
        access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
        column: "original",
        pageSize,
        pageNum,
      },
    }
  );
};

//热练榜
export const reqPopTrainingInfo = (pageSize: number, pageNum: number) => {
  return request.get<any, any>(
    `/apis/moment/moments/collect/original/popTraining`,
    {
      params: {
        access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
        column: "original",
        pageSize,
        pageNum,
      },
    }
  );
};

//新锐榜单
export const reqNewcomerInfo = (pageSize: number, pageNum: number) => {
  return request.get<any, any>(
    `/apis/moment/moments/collect/original/newcomer`,
    {
      params: {
        access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
        column: "original",
        pageSize,
        pageNum,
      },
    }
  );
};
//获取可隐藏的动态条件
export const reqOriginal = () => {
  return request.get<any, any>(`/apis/moment/properties/filter/original`, {
    params: {
      access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
    },
  });
};
//教程
export const reqInfo = (pageSize: number, pageNum: number) => {
  return request.get<any, any>(
    `/apis/moment/moments/collect/original/integrated`,
    {
      params: {
        access_token: "c494ae44-3adc-48ca-8749-5128a53358d7",
        column: "original",
        pageSize,
        pageNum : 1,
      },
    }
  );
};